import React, {Component} from 'react';
import jd from "./assets/img/jd.jpg";
const jd2 = require("./assets/img/jd.jpg");
class App extends Component {
    render() {
        // console.log(require("./assets/img/jd.jpg"))
        return (
            <div>
                {/*远程图片*/}
                <img width={200} src="https://img11.360buyimg.com/babel/s590x470_jfs/t1/156570/12/29288/53814/62fdf010E03bdeb67/ca1512758e48a5aa.jpg.avif" alt=""/>
                {/* 本地图片1 */}
                <img src={jd} alt=""/>
                {/* 本地图片2 */}
                <img src={require("./assets/img/jd.jpg")} alt=""/>
                {/* 本地图片3 */}
                <img src={jd2} alt=""/>
            </div>
        );
    }
}

export default App;